package com.distribution.system.manager.attributioncode;

import com.distribution.system.mapper.CmccDaCodeMapper;
import org.springframework.stereotype.Service;

/**
 * @author destinyhlp
 * @date 2023/6/1 23:16
 */

@Service
public class AttributionCodeMateManager {
    CmccDaCodeMapper cmccDaCodeMapper;

    public AttributionCodeMateManager(CmccDaCodeMapper cmccDaCodeMapper) {
        this.cmccDaCodeMapper = cmccDaCodeMapper;
    }

    /**
     * 通过名称获取归属地代码
     * @param code 归属地代码
     * @return  归属地名称
     */
    public String getAttributionNameByCode(String code) {
        return cmccDaCodeMapper.getKuaidialNameByCode(code);
    }
}
